package com.hm.PushCaseService.service.push.qycg.push;

import com.hm.PushCaseService.pojo.CaseBean;

public class HandlePushCaseUtils {

    public static CaseBean handle(CaseBean caseBean) {
        if (caseBean.eventcode == null) {
            caseBean.eventcode = "";
        }
        if (caseBean.eventDesc == null) {
            caseBean.eventDesc = "";
        }
        if (caseBean.status == null) {
            caseBean.status = "";
        }
        if (caseBean.eventClass == null) {
            caseBean.eventClass = "";
        }
        if (caseBean.eventTime == null) {
            caseBean.eventTime = "";
        }
        if (caseBean.locationDesc == null) {
            caseBean.locationDesc = "";
        }
        if (caseBean.currentStepName == null) {
            caseBean.currentStepName = "";
        }
        if (caseBean.currentDeptName == null) {
            caseBean.currentDeptName = "";
        }
        if (caseBean.currentDealPeopleName == null) {
            caseBean.currentDealPeopleName = "";
        }
        if (caseBean.fileUrls == null) {
            caseBean.fileUrls = "";
        }
        //案件号前面加id
        caseBean.eventcode = "YD" + caseBean.eventcode;
        //日期格式化
        caseBean.eventTime = caseBean.eventTime.replaceAll("T", " ");
        return caseBean;
    }
}
